`:top
A resource bundle is a `F33f`_`[Java`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_(software_platform)]`_`f `F33f`_`[.properties`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=.properties]`_`f file that contains `F33f`_`[locale`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Locale_(computer_software)]`_`f-specific data.`:cite-ref-1[`F5bf`_`[1`#cite-note-1]`_`f] It is a way of internationalising a Java application by making the code locale-independent.
>>Contents
• `F0af`_`[Benefits of using resource bundles`#benefits-of-using-resource-bundles]`_`f
• `F0af`_`[Translating a resource bundle`#translating-a-resource-bundle]`_`f
• `F0af`_`[Tools to create resource bundles`#tools-to-create-resource-bundles]`_`f
• `F0af`_`[See also`#see-also]`_`f
• `F0af`_`[References`#references]`_`f
-─
>>Benefits of using resource bundles
Extracting locale-sensitive objects such as strings from the code (as opposed to `F33f`_`[hard-coding`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Hard-coding]`_`f them) means that the application can handle multiple locales without having to write different code for each locale. It also means that translators can deal with just the translatable text and not the programming code. Therefore, using resource bundles improves the `F33f`_`[internationalisation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Internationalisation]`_`f and the `F33f`_`[localisation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Internationalization_and_localization]`_`f process of a software product.
>>Translating a resource bundle
Some `F33f`_`[CAT`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Computer-assisted_translation]`_`f tools like `F33f`_`[OmegaT`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=OmegaT]`_`f, OmegaT+,`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f] `F33f`_`[Swordfish`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Swordfish_Translation_Editor]`_`f or Sun's `F33f`_`[Open language tools`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Open_language_tools]`_`f can specifically handle resource bundles. In addition to these, translators can use any `F33f`_`[text editor`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Text_editor]`_`f to create new resource bundles or to modify existing ones.
>>Tools to create resource bundles
The Message Compiler `:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f] is a tool to generate resource bundle files from a single source file containing localized text definitions in different languages. The Message Compiler creates also constant definitions for the keys used to access the localized texts with the methods of the `F33f`_`[Java`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Java_(programming_language)]`_`f class ResourceBundle (6), ResourceBundle (7) and `F33f`_`[HTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=HTML]`_`f documentation pages for each language.
>>See also
• `F33f`_`[Bundled software`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Bundled_software]`_`f
>>References
`:cite-note-1`!1.`! `F0af`_`[↑`#cite-ref-1]`_`f `:citerefo-conner`aO'Conner, John. "Java Internationalization: Localization with ResourceBundles". `*Sun Developer Network`*. Archived from the original on 2007-01-03. Retrieved 2020-11-16.
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f OmegaT+
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f Message Compiler
`c`F0af`_`[↑ Back to top`#top]`_`f`a